package com.rdc.example.dao;

import com.rdc.example.entity.Column;

import java.util.List;

public interface ColumnDao {
    boolean insert(Column column) throws Exception;

    boolean deleteById(Integer id) throws Exception;

    boolean update(Column column) throws Exception;

    Column getColumnById(Integer id) throws Exception;

    Integer countColumnByUserId(Integer userId) throws Exception;

    List<Column> getColumnListByPageAndUserId(Integer userId, Integer pageBegin, Integer pageSize) throws Exception;

    List<Column> searchColumnsByTitle(String keyword, Integer pageBegin, Integer pageSize) throws Exception;

    Integer countSearchColumnsByTitle(String keyword) throws Exception;
}
